<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodsImgTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//商品缩略图
		Schema::create('goods_img', function(Blueprint $table) {
			$table->increments('id');
			$table->integer('thumb_id')->default(0)->comment('缩略图图片id');
			$table->integer('good_id')->default(0)->comment('商品id');
			$table->softDeletes();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
	}

}
